<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysUserLoginBean.id}"/>
		<f:event type="preRenderView" listener="#{sysUserLoginBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sys User Login"/>

	<ui:define name="header">
		Sys User Login
	</ui:define>

	<ui:define name="subheader">
		View existing Sys User Login
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sysUserLoginBeanSysUserLoginSysOrg" value="Sys Org:"/>
			<h:link id="sysUserLoginBeanSysUserLoginSysOrg" outcome="/form/sysOrg/view" value="#{sysUserLoginBean.sysUserLogin.sysOrg}">
				<f:param name="id" value="#{sysUserLoginBean.sysUserLogin.sysOrg.orgNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginHrEmp" value="Hr Emp:"/>
			<h:link id="sysUserLoginBeanSysUserLoginHrEmp" outcome="/form/hrEmp/view" value="#{sysUserLoginBean.sysUserLogin.hrEmp}">
				<f:param name="id" value="#{sysUserLoginBean.sysUserLogin.hrEmp.empNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginSysUserRole" value="Sys User Role:"/>
			<h:link id="sysUserLoginBeanSysUserLoginSysUserRole" outcome="/form/sysUserRole/view" value="#{sysUserLoginBean.sysUserLogin.sysUserRole}">
				<f:param name="id" value="#{sysUserLoginBean.sysUserLogin.sysUserRole.roleNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginUserName" value="User Name:"/>
			<h:outputText id="sysUserLoginBeanSysUserLoginUserName" value="#{sysUserLoginBean.sysUserLogin.userName}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginUserPassword" value="User Password:"/>
			<h:outputText id="sysUserLoginBeanSysUserLoginUserPassword" value="#{sysUserLoginBean.sysUserLogin.userPassword}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginUserDescr" value="User Descr:"/>
			<h:outputText id="sysUserLoginBeanSysUserLoginUserDescr" value="#{sysUserLoginBean.sysUserLogin.userDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginCuser" value="Cuser:"/>
			<h:outputText id="sysUserLoginBeanSysUserLoginCuser" value="#{sysUserLoginBean.sysUserLogin.cuser}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginSysUserRoles" value="Sys User Roles:"/>
			<h:dataTable id="sysUserLoginBeanSysUserLoginSysUserRoles" styleClass="data-table" value="#{forgeview:asList(sysUserLoginBean.sysUserLogin.sysUserRoles)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Role Name"/>
					</f:facet>
					<h:link outcome="/form/sysUserRole/view">
						<f:param name="id" value="#{_item.roleNo}"/>
						<h:outputText id="itemRoleName" value="#{_item.roleName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Role Descr"/>
					</f:facet>
					<h:link outcome="/form/sysUserRole/view">
						<f:param name="id" value="#{_item.roleNo}"/>
						<h:outputText id="itemRoleDescr" value="#{_item.roleDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginSysOrgs" value="Sys Orgs:"/>
			<h:dataTable id="sysUserLoginBeanSysUserLoginSysOrgs" styleClass="data-table" value="#{forgeview:asList(sysUserLoginBean.sysUserLogin.sysOrgs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Org Type No"/>
					</f:facet>
					<h:link outcome="/form/sysOrg/view">
						<f:param name="id" value="#{_item.orgNo}"/>
						<h:outputText id="itemOrgTypeNo" value="#{_item.orgTypeNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Org Code"/>
					</f:facet>
					<h:link outcome="/form/sysOrg/view">
						<f:param name="id" value="#{_item.orgNo}"/>
						<h:outputText id="itemOrgCode" value="#{_item.orgCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Org Name"/>
					</f:facet>
					<h:link outcome="/form/sysOrg/view">
						<f:param name="id" value="#{_item.orgNo}"/>
						<h:outputText id="itemOrgName" value="#{_item.orgName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Base Org No"/>
					</f:facet>
					<h:link outcome="/form/sysOrg/view">
						<f:param name="id" value="#{_item.orgNo}"/>
						<h:outputText id="itemBaseOrgNo" value="#{_item.baseOrgNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Addr No"/>
					</f:facet>
					<h:link outcome="/form/sysOrg/view">
						<f:param name="id" value="#{_item.orgNo}"/>
						<h:outputText id="itemAddrNo" value="#{_item.addrNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysUserLoginBeanSysUserLoginSysUserAppCompPrivileges" value="Sys User App Comp Privileges:"/>
			<h:dataTable id="sysUserLoginBeanSysUserLoginSysUserAppCompPrivileges" styleClass="data-table" value="#{forgeview:asList(sysUserLoginBean.sysUserLogin.sysUserAppCompPrivileges)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys App Comp"/>
					</f:facet>
					<h:link outcome="/form/sysUserAppCompPrivilege/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAppComp" value="#{forgeview:display(_item.sysAppComp)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Allow View"/>
					</f:facet>
					<h:link outcome="/form/sysUserAppCompPrivilege/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAllowView" value="#{_item.allowView}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Allow Edit"/>
					</f:facet>
					<h:link outcome="/form/sysUserAppCompPrivilege/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAllowEdit" value="#{_item.allowEdit}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Allow Add"/>
					</f:facet>
					<h:link outcome="/form/sysUserAppCompPrivilege/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAllowAdd" value="#{_item.allowAdd}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Allow Delete"/>
					</f:facet>
					<h:link outcome="/form/sysUserAppCompPrivilege/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAllowDelete" value="#{_item.allowDelete}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>